//
//  KDNewDayController.h
//  KongDays
//
//  Created by deeplu on 12. 12. 20..
//  Copyright (c) 2012년 BlueBeans. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "KDRepeatController.h"
#import "KDMemoController.h"
#import "KDAlarmController.h"

@class NSDay;
@class KDRepeat;

@interface KDNewDayController : UIViewController
    <UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate,
    UITextFieldDelegate, KDRepeatControllerDelegate, KDMemoControllerDelegate, KDAlarmControllerDelegate>
{
    @private
    NSString *dayTitle_;
    NSDate *date_;
    NSString *memo_;
    KDRepeat *repeat_;
    
    BOOL isFirstLoaded;
    BOOL isShowingDetails;
    
    UIActionSheet *actionSheet;
    UIDatePicker *datePicker;
}
@property (retain, nonatomic) NSDay *dayToEdit;
@property (retain, nonatomic) IBOutlet UITableView *fieldTable;

- (NSString *)dayTitle;
- (void)setDayTitle:(NSString *)dayTitle;

- (NSDate *)date;
- (void)setDate:(NSDate *)date;

- (KDRepeat *)repeat;
- (void)setRepeat:(KDRepeat *)repeat;

- (NSString *)memo;
- (void)setMemo:(NSString *)memo;

- (IBAction)add:(id)sender;

@end
